import java.io.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-04-09
 * Time: 17:53
 */
public class TestDemo {

    public static void main(String[] args) throws IOException {

        String fileName = "D:\\myJAVA\\读文件\\src\\QQ号.txt";
        FileReader fileReader = new FileReader(fileName);

        BufferedReader bufferedReader = new BufferedReader(fileReader);

        System.out.println(fileReader.getEncoding());

        String line = bufferedReader.readLine();

        while (line != null) {
            System.out.println(line);
            line = bufferedReader.readLine();
        }

        bufferedReader.close();
        fileReader.close();

    }
}
